//
//  PreviewViewController.h
//  Finance
//
//  Created by cheng xiang on 13-4-2.
//  Copyright (c) 2013年 cheng xiang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LoadMoreFooterView.h"
#import "WEPopoverController.h"

#import "EGORefreshTableHeaderView.h"
#import "SectionHeaderView.h"

@interface PreviewViewController : UIViewController<UITableViewDataSource, UITableViewDelegate,LoadViewFooterDelegate,WEPopoverControllerDelegate,EGORefreshTableHeaderDelegate,sectionDelegate>


@property (nonatomic, strong)UITableView *tableView;
@property (nonatomic, strong)LoadMoreFooterView *loadFooterView;
@property (nonatomic, assign)BOOL reloading;
@property (nonatomic, strong)NSMutableArray *dataArray;
@property (nonatomic, assign)CGPoint currentOffsetPoint;
@property (nonatomic, assign)int pageIndex;

@property (nonatomic, strong)EGORefreshTableHeaderView *refreshTableView;
@property (nonatomic, assign)ServerType type;//协调是上拉加载还是下拉刷新

@property (nonatomic, strong) WEPopoverController *popController;

@property (nonatomic, strong)NSMutableDictionary *sortDic;

@property (nonatomic, strong)SectionHeaderView *headerView;

- (void)reloadTableViewDataSource;
- (void)doneLoadingTableViewData;
@end